import request from "../utils/request";

// 登录
export const login_API = (data) => {
  return request({
    url: "/xcx/t_user/log_in",
    method: "POST",
    data,
  });
};

// 获取购物车列表
export const getShoppingCardList_API = () => {
  return request({
    url: "/xcx/t_shopping_cart/get_list",
    method: "GET",
  });
};

// 删除购物车商品
export const delShoppingCardList_API = (cartId) => {
  return request({
    url: "/xcx/t_shopping_cart/delete_by_id/" + cartId,
    method: "DELETE",
  });
};
